package cn.edu.qzuie.artist.module.td.controller.admin.workscatagory.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.*;

@Schema(description = "管理后台 - 作品分类新增/修改 Request VO")
@Data
public class WorksCategorySaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Long id;

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "绘画")
    @NotEmpty(message = "分类名称不能为空")
    private String categoryName;

    @Schema(description = "父编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    @NotNull(message = "父编号不能为空")
    private Long parentId;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "50")
    @NotNull(message = "排序不能为空")
    private Integer sort;

}